<template>
  <div id="mj" v-if="mjShow">
    <div class="close" @click="closePane">×</div>
    <div class="title">门禁详情</div>
    <div class="content"></div>
  </div>
</template>
<script>
import { eneryEquipmentQuery } from "../../utils/api";
export default {
  data() {
    return {
      mjShow: false,
    };
  },
  mounted() {
    window.showmj = this.mjinit;
  },
  methods: {
    mjinit(val) {
      this.mjShow = val.show;
      eneryEquipmentQuery().then((response) => {
      });
    },
    // 关闭弹窗
    closePane() {
      this.mjShow = false;
    },
  },
};
</script>
<style scoped>
#mj {
  margin: 0 auto;
  box-sizing: border-box;
  position: absolute;
  left: 36%;
  top: 520px;
  width: 1190px;
  height: 800px;
  color: white;
  background: url("../../../static/images/popups/detailsPane.png") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  transition: all 1.2s;
}
/* 右上角关闭按钮 */
.close {
  float: right;
  font-size: 50px;
  font-weight: 900;
  margin-right: 30px;
  margin-top: 10px;
  transition: all 1s;
}
.close:hover {
  transform: scale(1.1);
  color: red;
  cursor: pointer;
}
.content {
  box-sizing: border-box;
  width: 100%;
  height: 800px;
  padding: 80px;
  margin-top: 30px;
}
.title {
  position: absolute;
  left: 40px;
  top: 30px;
  font-size: 32px;
  font-weight: 800;
}
</style>